package com.yuanchu.store.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanchu.store.entity.YoshopUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 用户记录表
 * 
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:21
 */
@Mapper
public interface YoshopUserDao extends BaseMapper<YoshopUserEntity> {

    @Select("SELECT COUNT(*) FROM yoshop2_db.yoshop_user where grade_id != 0")
    public Integer queryUserCount();
}
